<template>
  <div class="audi">
    <el-table :data="Lists" border style="width: 100%,height:100%">
      <el-table-column prop="id" label="id" width="50px"></el-table-column>
      <el-table-column prop="thumnail" label="缩略图" width="200px">
        <template slot-scope="scope">
          <img :src="scope.row.thumnail" width="150" height="100" class="head_pic" />
        </template>
      </el-table-column>
      <el-table-column prop="url" label="视频路径"></el-table-column>
      <el-table-column prop="category" label="分类" width="80px"></el-table-column>
      <el-table-column prop="name" label="名称" type="textarea"></el-table-column>
      <el-table-column prop="introduction" label="简介" type="textarea"></el-table-column>
      <el-table-column prop="user" label="上传者"></el-table-column>
      <el-table-column fixed="right" label="操作">
        <template slot-scope="scope">
          <el-button @click="handleEdit(scope.row.id)" size="mini" icon="el-icon-edit">审核</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
import videoApi from "@/api/video";
export default {
  data() {
    return {
      Lists: [
        {
          id: 1,
          thumnail: 0,
          url: "1",
          category: "电视剧",
          name: "视频",
          introduction: "庆余年",
          user: "1343"
        }
      ]
    };
  },
  created() {
    this.fetchData();
  },
  methods: {
    fetchData() {
      videoApi.listByStatus(0).then(response => {
        const res = response.data;
        this.Lists = res.data;
      });
    }
  }
};
</script>

<style scoped>
.audi {
  position: absolute;
  width: 100%;
}
.el-tabs {
  text-align: center;
}
</style>